import { createPinia } from 'pinia';

export { default as useAppStore } from './modules/app';
export { default as useUserStore } from './modules/user';
export { default as useRouteStore } from './modules/route';
import { setupResetStore, setupStorageStore } from './plugins';

export function setupStore(app) {
  const store = createPinia();
  app.use(store);
  store.use(setupResetStore);
  store.use(setupStorageStore);
}
